package com.yvdedu.hospital.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.mapper.DepotAdminMapper;
import com.yvdedu.hospital.service.DepotAdminService;

@Service
public class DepotAdminSer implements DepotAdminService {

	
	@Resource
	DepotAdminMapper depotAdminMapper; 
	
	@Override
	public List<User> depotAdminquery(int role_id) {
		List<User> list = depotAdminMapper.depotAdminquery(role_id);
		return list;
	}

	@Override
	public List<User> depotAdminNamequery(User user) {
		List<User> list = depotAdminMapper.depotAdminNamequery(user);
		return list;
	}

	@Override
	public void depotAdminadd(User user) {
		depotAdminMapper.depotAdminadd(user);
	}

	@Override
	public void depotAdminedit(User user) {
		depotAdminMapper.depotAdminedit(user);
	}

	@Override
	public void depotAdmindelete(int id) {
		depotAdminMapper.depotAdmindelete(id);
	}
	


}
